#pragma once

#include "ui_DecryptWidget.h"
#include <string>

namespace kryptos { namespace controller {

  class Command;
}}

namespace kryptos { namespace ui {

class DecryptWidget : public QWidget
{
    Q_OBJECT

public:
    explicit DecryptWidget(QWidget *parent = 0);

    void setDecryptCommand(kryptos::controller::Command*);

    QMap<QString, QString> params();

    void init();

public slots:

signals:

private slots:
    void slotAskForPassphrase     (std::string name, std::string email);
    void slotAskForPassphraseAgain(std::string name, std::string email);
    void slotPassphraseReady      ();

private:
    Ui::DecryptWidget             ui;
    kryptos::controller::Command* m_decryptCmd;
};

}}
